

<template>
  <el-select v-model="value" placeholder="请选择" v-bind="$attrs">
    <el-option
      v-for="item in options"
      :key="item[currentItem.optionsValue]"
      :label="item[currentItem.optionsLabel]"
      :value="item[currentItem.optionsValue]">
    </el-option>
  </el-select>
</template>
<script>

import CommonRender from "./commonRender";
export default {
  name:"RenderSelect",
  mixins:[CommonRender],
  watch:{
    currentItem:{
      handler(){
        let value = '';
        if(this.currentItem.props.multiple.value){
          value = []
        }
      },
      deep:true,
    }
  },
  data(){
    let value = '';
    if(this.currentItem.props.multiple.value){
      value = []
    }
    return {
      value,
    }
  }
}
</script>
<style scoped lang="scss">

</style>
